var ScenePreview = function(options) {
	this.ctx = options.ctx;
	this.editor = options.editor;
	this.globe = options.editor.globe;
	this.isOpen=false;
	this.isOpenEdit=true;
	this.editPModel;
	this.dIndex;
}

ScenePreview.prototype.openLayerTree = function() {
	var _this = this;
	if (_this.isOpen) {
		return;
	}
	layer.load(2);
	var res = common_ajax.ajaxFunc('get', _this.ctx + "/scene/preview/layer", {}, "html", null);
	layer.closeAll('loading');
	if (!res) {
		layer.alert('系统异常！');
		return;
	}
	layer.closeAll();
	layer.open({
		id: 'layerTree',
		title: '图层',
		type: 1,
		area: '230px',
		content: res,
		shade: 0,
		offset: 'l',
		fixed: true,
		move: false,
		skin: 'layui-layer layui-layer-adminRight layui-layer-city',
		success: function(layero, dIndex) {
			_this.isOpen = true;
			$(layero).children('.layui-layer-content').css('overflow', 'hidden');
			$(layero).children('.layui-layer-content').css('height', 'calc(100% - 40px)');
			form.render();
		},
		end: function() {
			_this.isOpen = false;
		}
	});
}

